package com.jiyun.model.xitong;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("yaopin")
public class Yaopin implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 药品ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 药品标签
     */
    private String name;

    /**
     * 列表图
     */
    private String img;

    /**
     * 药品分类
     */
    private String type;

    /**
     * 发布人
     */
    private Integer userId;

    /**
     * 发布状态
     */
    private Integer status;

    /**
     * 收藏量
     */
    private Integer num;

    /**
     * 操作时间
     */
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
   private Date times;

    /**
     * 药品描述
     */
    private String ms;

    /**
     * 药品规格
     */
    private String guige;

    /**
     * 序号
     */
    private String xuhao;

    /**
     * 发布时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createtime;


}
